<template>
  <div>
    <div class="box">
    <!--  导航  -->
    <el-menu
        :default-active="activeIndex"
        class="el-menu-demo-hello"
        mode="horizontal"
        @select="handleSelect"
        style="border-bottom-color: #100851;background-color:#100851;text-color:#fff"
        active-text-color="#ffd04b">
      <el-menu-item index="1">首页</el-menu-item>
      <el-submenu index="2">
        <template slot="title">功能体系</template>
        <el-menu-item index="2-1">系统管理</el-menu-item>
        <el-menu-item index="2-2">系统监控</el-menu-item>
        
        <el-menu-item index="2-3">系统工具</el-menu-item>
        <el-submenu index="2-4">
          <template slot="title">社区管理</template>
          <el-menu-item index="2-4-1">社区资产</el-menu-item>
          <el-menu-item index="2-4-2">小区管理</el-menu-item>
          <el-menu-item index="2-4-3">互动管理</el-menu-item>
          <el-menu-item index="2-4-4">访客管理</el-menu-item>
          <el-menu-item index="2-4-5">报修管理</el-menu-item>
          <el-menu-item index="2-4-6">投诉建议</el-menu-item>
        </el-submenu>
      </el-submenu>
      <el-menu-item index="3" @click="on">智慧社区</el-menu-item>
      <el-menu-item index="4">智能硬件</el-menu-item>
      <el-menu-item index="5">智慧街道</el-menu-item>
      <el-menu-item index="6">物业管理</el-menu-item>
      <el-menu-item index="7">社区商业</el-menu-item>
      <el-menu-item index="8">关于我们</el-menu-item>
      <el-menu-item index="9" style="float: right">10086 中 | EN</el-menu-item>
    </el-menu>

    <!-- 轮播区域 -->
    <div class="imgBox">
      <el-carousel :interval="4000" type="card" height="400px">
        <el-carousel-item v-for="item in imgList" :key="item">
          <img :src="item.url" alt="" style="width: 100%"/>
        </el-carousel-item>
      </el-carousel>
    </div>
    </div>

    <!-- 卡片区域 -->
    <h1 class="Title">系统应用场景</h1>
    <!--  第一个  -->
    <el-col :span="7" style="margin-right: 80px;margin-top: 50px;margin-left: 20px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/one.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">智慧社区建设</h5>
        <p class="cardText">通过人脸门禁 智能摄像头 智能快递柜 充电桩 停车系统等设备提升社区的智能化</p>
      </el-card>
    </el-col>
    <!--  第二个  -->
    <el-col :span="7" style="margin-right: 80px;margin-top: 50px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/two.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">多社区物业管理</h5>
        <p class="cardText">涵盖物业缴费 投诉建议 报修巡检 业主交流 活动调查 水电费收缴等各项物业管理功能</p>
      </el-card>
    </el-col>
    <!--  第三个  -->
    <el-col :span="7" style="margin-top: 50px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/three.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">社区商业运营</h5>
        <p class="cardText">依托业主资源，通过线上商城 社区O2O体系 外卖等各种商业模式，实现商业运营</p>
      </el-card>
    </el-col>
    <!--  第四个  -->
    <el-col :span="7" style="margin-right: 80px;margin-top: 50px;margin-left: 20px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/four.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">业主SCRM运营</h5>
        <p class="cardText">对社区业主进行标签画像，精细化运营管理业主资源，为社区商业拓展更多运营模式</p>
      </el-card>
    </el-col>
    <!--  第五个  -->
    <el-col :span="7" style="margin-right: 80px;margin-top: 50px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/five.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">智慧街道管理</h5>
        <p class="cardText">为街道、社区，提供民生管理、智慧党建、综主资源，为社区商业拓展更多运营模式</p>
      </el-card>
    </el-col>
    <!--  第六个  -->
    <el-col :span="7" style="margin-top: 50px">
      <el-card shadow="hover">
        <div style="display: flex">
          <div style="flex: 1"></div>
          <img :src="require('../assets/image/home/icon/six.png')">
          <div style="flex: 1"></div>
        </div>
        <h5 class="cardTitle">商业园区管理</h5>
        <p class="cardText">面向商业园区 写字楼商住楼的智慧解决方案，包括资产管理 物业管理 智能设备物联</p>
      </el-card>
    </el-col>

    <!--  简介模块  -->
    <div class="infoBox">
      <!--   左侧放图片   -->
      <div class="infoBox-img">
        <img :src="require('../assets/image/home/about-us.png')" style="margin-left: 200px;margin-top: 65px">
      </div>
      <!--    右侧文本    -->
      <div class="right-text">
        <h2 class="h2Title">新一代高端智慧社区平台系统</h2>
        <p class="right-text-p">将智能软硬件应用于智慧社区场景，实现刷脸通行、陌生人识别、出入口管理等需求，满足公安、社区街道的监管要求，提升社区人员管理效率、提升业主满意度</p>
        <img :src="require('../assets/image/home/img.png')" style="float: left">
        <!--  弹出  -->
        <el-popover
            placement="bottom"
            title="打开微信扫一扫"
            width="230"
            trigger="click">

          <div style="display: flex">
            <div style="flex: 1"></div>
            <img :src="require('../assets/image/home/ma.png')" style="width: 200px">
            <div style="flex: 1"></div>
          </div>

          <el-button type="primary" round slot="reference" style="float:left;margin-left:-615px;margin-top: 140px;background-color: #4C57D6;color: #fff;font-weight: 700;font-family: 幼圆;">一键三连</el-button>
        </el-popover>
      </div>
    </div>

  </div>
</template>

<script>

export default {
  name: "Profile",
  data(){
    return{
      activeIndex: '1',

      dialogVisible: false,

      active:'',

      imgList:[
        { url: require("../assets/image/home/1.png")},
        { url: require("../assets/image/home/2.png")},
        { url: require("../assets/image/home/3.png")},
        { url: require("../assets/image/home/4.png")},
        { url: require("../assets/image/home/5.png")},
        { url: require("../assets/image/home/6.png")},
      ]
    }
  },

  created() {
    this.yr();
    this.yc();
  },

  methods: {
    //登录
    on(){
      // 导航至/login
      this.$router.push('/login')
    },

    //选择
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },

    //关闭弹出框
    handleClose(done) {
      this.$confirm('确认关闭？')
          .then(()=> {
            done();
          })
          .catch(() => {});
    },

  }
}
</script>

<style>
.box{
  height: 710px;
  background-image: url("../assets/image/home/hero-1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.imgBox{
  margin-top: 60px;
}

.Title{
  text-align: center;
  font-size: 34px;
}

.cardTitle{
  text-align: center;
  font-size: 24px;
  color: #111111;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
}

.cardText{
  text-align: center;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  color: #444444;
  font-weight: 400;
  line-height: 26px;
  margin: 0 0 15px 0;
}

.el-card{
  box-shadow: 3px 5px 5px #8c939d;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.infoBox{
  margin-top: 600px;
  width: 100%;
  height: 500px;
  background-color: #F5F5F5;
}

.infoBox-img{
  float: left;
  width: 50%;
  height: 100%;
}

.right-text{
  float: right;
  width: 50%;
  height: 100%;
}

.h2Title{
  color: #111111;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-size: 36px;
  margin-top: 100px;
}

.right-text-p{
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  color: #444444;
  font-weight: 400;
  line-height: 26px;
  margin: 0 0 15px 0;
}

</style>

